package com.vip.shopdao.order.domain;

import com.vip.shopbase.Domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Classname Order
 * @Description TODO
 */
@Entity
@Table(name = "Order_")
public class Order extends BaseEntity<Long> {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 订单名字
     */
    @Column
    String name;
    /**
     * 订单描述
     */
    @Column
    String description;
    /**
     * 商品ID
     */
    @Column
    Long shopId;
    /**
     * 尺寸id
     */
    @Column
    Long sizeId;
    /**
     * 订单总价格
     */
    @Column
    Double price;

    public Order() {
    }

    public Order(String name, String description, Long sizeId, Double price) {
        this.name = name;
        this.description = description;
        this.sizeId = sizeId;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getSizeId() {
        return sizeId;
    }

    public void setSizeId(Long sizeId) {
        this.sizeId = sizeId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
}